package test.teacher.login.service;

import test.teacher.Teacher;
import test.teacher.login.DAO.TeacherDao;

import java.beans.PropertyVetoException;
import java.sql.SQLException;

/**
 * @date 2018/5/18  16:40
 */
public class loginService {
   public Teacher checkLogin(String name , String id) throws PropertyVetoException, SQLException {
       TeacherDao teacherDao = new TeacherDao();
       Teacher teacher = teacherDao.queryTeacher(name,id);
       if (teacher!=null){
           return teacher;
       }
       return null;
    }
}
